package com.lab303.powerproject.service;

import com.lab303.powerproject.entity.EnergyType;

import java.util.List;

public interface EnergyTypeService {

    public List<EnergyType> getAllEnergyType();

    public EnergyType addOneEnergyType(EnergyType energyType);

    public EnergyType findEnergyTypeById(Integer id);

    public EnergyType saveAndFlush(EnergyType energyType);

    public boolean checkEnergyTypeName(String energyTypeName);

    boolean deleteEnergyType(Integer typeId);
}
